<template>
    <p>{{ mainStore.count }}</p>
    <button @click="mainStore.count++">按钮</button>
</template>
<script lang="ts" setup>
import { useMainStore } from '../store'
//获取状态实例
const mainStore = useMainStore()
</script>

<style>
</style>